package com.iuhao.web.service;
import com.iuhao.web.log.BaseLog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * Created by yanhao on 2017/11/7.
 */
@Service
public  class ParentService {


    protected Logger log = LoggerFactory.getLogger(this.getClass());

    public void insertLog(BaseLog baseLog) {
        try {
           /* baseLog.setLogTime(DateUtil.getCurrentDate());
            mongoTemplate.insert(baseLog);*/
        } catch (Exception e) {
            log.error("[ParentService.insertLog]保存接口日志记录出错： " + e.getMessage());
        }
    }
}
